﻿using System;
using System.Collections.Generic;
using System.ServiceModel.DomainServices.Client;

namespace SL.MVVMS.RIA
{
    /// <summary>
    /// Used for Delete Processing from a Service via the ContextManager's Load's DeleteFilter
    /// </summary>
    /// 
    [Obsolete("Please Use View Filtering Instead of Filtering Items on Delete")]
    public struct DeleteEventArgs
    {
        public DeleteEventArgs(object item)
        {
            this = new DeleteEventArgs();
            Item = item;
        }

        /// <summary>
        /// Inspect this Item to determine if the Load operation should 
        /// delete this item from cache.  The item already has been
        /// identified as not returned from the query.
        /// </summary>
        public object Item { get; private set; }
    }
}